<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
    <title>大麦商城</title>
    <link href="css/slider.css" rel="stylesheet" type="text/css"/>
    <link href="css/common.css" rel="stylesheet" type="text/css"/>
    <link href="css/index.css" rel="stylesheet" type="text/css"/>
    <script src="http://47.106.66.89:8080/js/vue.min.js"></script>
    <script src="http://47.106.66.89:8080/js/axios.min.js"></script>
    <link href="http://47.106.66.89:8080/js/ele-2.15.7/theme-chalk/index.css" rel="stylesheet">
    <script src="http://47.106.66.89:8080/js/ele-2.15.7/index.js"></script>
    <script src="js/header.js"></script>
</head>
<body>
<div id="a">
    <top ref="t"></top>

    <div class="container index">


        <div class="span24">
            <div id="hotProduct" class="hotProduct clearfix">
                <div class="title">
                    <strong>热门商品</strong>
                    <!-- <a ></a> -->
                </div>
                <ul class="tab">
                    <li class="current">
                        <a href="./蔬菜分类.htm?tagIds=1"></a>
                    </li>
                    <li>
                        <a></a>
                    </li>
                    <li>
                        <a></a>
                    </li>
                </ul>
                <ul class="tabContent" style="display: block;">

                    <li v-for="p in hots">
                        <a :href="'detail.html?id='+p.id">
                            <img :src="p.image" style="display: block;">
                        </a>
                    </li>


                </ul>
            </div>
        </div>
        <div class="span24">
            <div id="newProduct" class="newProduct clearfix">
                <div class="title">
                    <strong>最新商品</strong>
                    <a></a>
                </div>
                <ul class="tab">
                    <li class="current">
                        <a href="./蔬菜分类.htm?tagIds=2"></a>
                    </li>
                    <li>
                        <a></a>
                    </li>
                    <li>
                        <a></a>
                    </li>
                </ul>
                <ul class="tabContent" style="display: block;">

                    <li>
                        <a href="detail.html?72"><img src="products/1/cs10011.jpg" style="display: block;"></a>
                    </li>

                    <li>
                        <a href="detail.html?57"><img src="products/1/cs60006.png" style="display: block;"></a>
                    </li>

                    <li>
                        <a href="detail.html?4"><img src="products/1/cs10004.jpg" style="display: block;"></a>
                    </li>

                    <li>
                        <a href="detail.html?45"><img src="products/1/cs50004.png" style="display: block;"></a>
                    </li>

                    <li>
                        <a href="detail.html?51"><img src="products/1/cs50010.png" style="display: block;"></a>
                    </li>

                    <li>
                        <a href="detail.html?68"><img src="products/1/cs70007.png" style="display: block;"></a>
                    </li>

                    <li>
                        <a href="detail.html?60"><img src="products/1/cs60009.png" style="display: block;"></a>
                    </li>

                    <li>
                        <a href="detail.html?30"><img src="products/1/cs30010.png" style="display: block;"></a>
                    </li>

                    <li>
                        <a href="detail.html?6"><img src="products/1/cs10006.jpg" style="display: block;"></a>
                    </li>

                    <li>
                        <a href="detail.html?2"><img src="products/1/cs10002.jpg" style="display: block;"></a>
                    </li>

                </ul>
            </div>
        </div>
        <div class="span24">
            <div class="friendLink">
                <dl>
                    <dd>新手指南</dd>
                    <dd>
                        <a>支付方式</a>
                        |
                    </dd>
                    <dd>
                        <a>配送方式</a>
                        |
                    </dd>
                    <dd>
                        <a>售后服务</a>
                        |
                    </dd>
                    <dd>
                        <a>购物帮助</a>
                        |
                    </dd>
                    <dd>
                        <a>蔬菜卡</a>
                        |
                    </dd>
                    <dd>
                        <a>礼品卡</a>
                        |
                    </dd>
                    <dd>
                        <a>银联卡</a>
                        |
                    </dd>
                    <dd>
                        <a>亿家卡</a>
                        |
                    </dd>

                    <dd class="more">
                        <a>更多</a>
                    </dd>
                </dl>
            </div>
        </div>
    </div>
    <div class="container footer">
        <div class="span24">
            <div class="footerAd">
                <img src="image/footer.jpg" width="950" height="52" alt="我们的优势" title="我们的优势">
            </div>
        </div>
        <div class="span24">
            <ul class="bottomNav">
                <li>
                    <a>关于我们</a>
                    |
                </li>
                <li>
                    <a>联系我们</a>
                    |
                </li>
                <li>
                    <a>招贤纳士</a>
                    |
                </li>
                <li>
                    <a>法律声明</a>
                    |
                </li>
                <li>
                    <a>友情链接</a>
                    |
                </li>
                <li>
                    <a>支付方式</a>
                    |
                </li>
                <li>
                    <a>配送方式</a>
                    |
                </li>
                <li>
                    <a>服务声明</a>
                    |
                </li>
                <li>
                    <a>广告声明</a>

                </li>
            </ul>
        </div>
        <div class="span24">
            <div class="copyright">Copyright © 2005-2013 大麦商城 版权所有</div>
        </div>
    </div>
</div>
<script>
    var v = new Vue({
        el: "#a",
        data: {
            hots: []
        },
        created() {
            axios.get("queryHots").then(res => this.hots = res.data);
        }
    })
</script>

</body>
</html>